<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div{
            border: 1px solid #000;
            font-size: 30px;
            color: #c09f7a;
            text-align: center;
            position: relative;
        }
        div::before{
            content: '';
            position: absolute;
            top:50%;
            left: 0;
            height: 1px;
            width:100%;
            background-color: #cccccc;
            z-index: 0;
        }
        div span{
            position: relative;
            z-index: 1;
            padding: 0 20px;
            background-color: #fff;
        }
    </style>
</head>
<body>
    <div class="div1">
        <span>购物车</span>
    </div>
</body>
</html>